package com.example.aqarapp.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

//设备列表模式数据类
public class DeviceListItem implements MultiItemEntity {

    public String location;
    public BulbInfo bulbInfo;
    public CurtainInfo curtainInfo;
    public SocketInfo socketInfo;
    //public List<Integer> stateList; //灯泡、窗帘、插座的状态列表

    public DeviceListItem(String location, BulbInfo bulbInfo, CurtainInfo curtainInfo, SocketInfo socketInfo) {
        this.location = location;
        this.bulbInfo = bulbInfo;
        this.curtainInfo = curtainInfo;
        this.socketInfo = socketInfo;
    }

    public DeviceListItem() {
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public BulbInfo getBulbInfo() {
        return bulbInfo;
    }

    public void setBulbInfo(BulbInfo bulbInfo) {
        this.bulbInfo = bulbInfo;
    }

    public CurtainInfo getCurtainInfo() {
        return curtainInfo;
    }

    public void setCurtainInfo(CurtainInfo curtainInfo) {
        this.curtainInfo = curtainInfo;
    }

    public SocketInfo getSocketInfo() {
        return socketInfo;
    }

    public void setSocketInfo(SocketInfo socketInfo) {
        this.socketInfo = socketInfo;
    }

    @Override
    public String toString() {
        return "DeviceListItem{" +
                "location='" + location + '\'' +
                ", bulbInfo=" + bulbInfo +
                ", curtainInfo=" + curtainInfo +
                ", socketInfo=" + socketInfo +
                '}';
    }

    @Override
    public int getItemType() {
        return 0;
    }
}
